file-chooser: style save mode name box as a search bar
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Tue, 8 Apr 2014 17:26:08 +0000 (13:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 23 Apr 2014 02:34:59 +0000 (22:34 -0400)
So we get a bottom border etc.

https://bugzilla.gnome.org/show_bug.cgi?id=722211

gtk/gtkfilechooserwidget.c

index 0c5aa61816cb0be46f92549b815fa592026642f2..03ffeeca84483e3e5679225255235b65b01d657b 100644 (file)
@@ -1960,9 +1960,12 @@ save_widgets_create (GtkFileChooserWidget *impl)
   location_switch_to_path_bar (impl);
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
+  gtk_style_context_add_class (gtk_widget_get_style_context (vbox), "search-bar");
+
+  gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
 
   priv->save_widgets_table = gtk_grid_new ();
+  gtk_container_set_border_width (GTK_CONTAINER (priv->save_widgets_table), 10);
   gtk_box_pack_start (GTK_BOX (vbox), priv->save_widgets_table, FALSE, FALSE, 0);
   gtk_widget_show (priv->save_widgets_table);
   gtk_grid_set_row_spacing (GTK_GRID (priv->save_widgets_table), 12);